package com.myway.controller;

import com.myway.dto.common.JsonData;
import com.myway.pojo.SysFriendLink;
import com.myway.service.FriendLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by yufei on 2018/6/24.
 */
@Controller
@RequestMapping("/en/friendlink")
public class FriendLinkControllerEn {


    @Autowired
    private FriendLinkService friendLinkService;

    @RequestMapping("/valid")
    @ResponseBody
    public JsonData getValidPage(){
        List<SysFriendLink> result = friendLinkService.getValidPage();
        return JsonData.success(result);
    }
}
